package com.example.textroom.bead;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Description:
 * Author: dengpao
 * Date: 2025/4/29 15:34
 */
@Entity(tableName = "user_table")
public class UserTo {

    @PrimaryKey(autoGenerate = true)
    private int id;

    @ColumnInfo(name = "user_name")
    private String name;

    @ColumnInfo(name = "gender") // 性别：1-男，2-女
    private int gender;

    @ColumnInfo(name = "register_date")
    private Long registerDate;

    public UserTo(String firstName, int gender, Long registerDate) {
        this.name = firstName;
        this.gender = gender;
        this.registerDate = registerDate;
    }

    public UserTo() {

    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public Long getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Long registerDate) {
        this.registerDate = registerDate;
    }

}
